package memnto.example;

/**
 * 备忘录类 memento
 * 存储状态值
 * @author Chen Guang
 * @date 2019/4/17 0017 上午 9:40
 */
public class RoleMemento {
    /**
     * 生命力
     */
    private int vitality;
    /**
     * 攻击力
     */
    private int attack;
    /**
     * 防御力
     */
    private int defence;

    public RoleMemento(int vitality, int attack, int defence) {
        this.vitality = vitality;
        this.attack = attack;
        this.defence = defence;
    }

    public int getVitality() {
        return vitality;
    }

    public void setVitality(int vitality) {
        this.vitality = vitality;
    }

    public int getAttack() {
        return attack;
    }

    public void setAttack(int attack) {
        this.attack = attack;
    }

    public int getDefence() {
        return defence;
    }

    public void setDefence(int defence) {
        this.defence = defence;
    }
}
